import request from '@/request'

export function findAll(data) {
    return request.post("dept/findAll", data);
}

export function update() {
    return request.post("dept/update");
}

export function doimportxls() {
    return request.post("dept/import");
}

export function doexportxls() {
    return request.post("dept/download");
}
export function doSaveOrUpdate(data) {
    let path = data.deptId ? "update" : "save";
    return request.post(`dept/${path}`, data);
}
export function dodel(deptId) {
    return request.post("dept/delete", deptId, request.textConfig);
}

export function findLike(data) {
    return request.post("dept/findLike", data, request.textConfig);
}

export function find(data) {
    return request.post("dept/find",data);
}